<template>
	<view>
		<view class="header">
			<uv-icon name="arrow-leftward" bold="true" @click="back"></uv-icon>
			<div class="center">历史问诊</div>
			<div></div>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				dataList: [],
			}
		},
		onLoad(option) {
			console.log("历史id", option);
			this.getList(option)
		},
		methods: {
			back() {
				uni.reLaunch({
					url: '/pages/Index/Index'
				})
			},
			getList(option) {
				uni.request({
					url: "http://172.27.6.151:32112/api/get/Historical",
					method: "GET",
					data: {
						id: option.id
					}
				}).then(res => {
					console.log(res.data);

				})
			}
		}
	}
</script>

<style>
	.header {
		width: 700rpx;
		margin-top: 85rpx;
		display: flex;
		justify-content: space-between;
		padding: 20rpx;
		border-bottom: 1rpx solid #ccc;


	}
</style>